<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.farm.web.constant.FarmConstant"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/view/conf/farmtag.tld" prefix="PF"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<PF:basePath/>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页- <PF:ParameterValue key="config.sys.title" /></title>
<meta name="description"
	content='<PF:ParameterValue key="config.sys.mate.description"/>'>
<meta name="keywords"
	content='<PF:ParameterValue key="config.sys.mate.keywords"/>'>
<meta name="author"
	content='<PF:ParameterValue key="config.sys.mate.author"/>'>
<meta name="robots" content="index,follow">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<jsp:include page="atext/include-web.jsp"></jsp:include>
<style>
body {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE/Edge */
	user-select: none; /* Standard syntax */
}

.wuc-userinfo th {
	min-width: 100px;
}

.project-catalog {
	border-left: 5px solid #58626b;
	padding-left: 0.5em;
	color: #58626b;
	font-weight: 700;
	font-size: 24px;
}

.projecct-node {
	height: 120px;
	width: 100%;
	background-color: #ffffff;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
}

.projecct-node:hover {
	background-color: #f6f9f5;
}

.projecct-node .title {
	text-align: center;
	font-weight: 400;
	color: #58626b;
	font-size: 16px;
}

.projecct-node img {
	width: 48px;
	height: 48px;
	margin-top: 20px;
	margin-bottom: 10px;
}
</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<!-- 导航 -->
			<jsp:include page="commons/head.jsp"></jsp:include>
		</div>
	</div>
	<div class="container-fluid "
		style="background-color: #eceef1; padding-top: 80px; padding-bottom: 50px;">
		<div class="container" style="margin-bottom: 50px;">
			<div class="row">
				<div class="col-md-12" style="padding-bottom: 20px;">
					<jsp:include page="commons/curentUserInfo.jsp"></jsp:include>
				</div>
			</div>
			<c:forEach items="${catalogProjects}" var="cp">
				<c:if test="${!empty cp.projects }">
					<div class="row">
						<div class="col-md-12" style="padding-bottom: 20px;">
							<h1 class="project-catalog">${cp.catalog.name}</h1>
						</div>
					</div>
					<div class="row">
						<c:forEach items="${cp.projects }" var="project">
							<div class="col-md-3" style="padding-bottom: 20px;">
								<div class="projecct-node"
									onclick="window.open('prorun/actives.do?projectid=${project.id }')">
									<img alt="" src="text/img/icon/icon-generate.png">
									<div class="title">${project.name }</div>
								</div>
							</div>
						</c:forEach>
					</div>
				</c:if>
			</c:forEach>
		</div>
	</div>
	<div class="container-fluid" style="padding: 0px;">
		<!-- 页脚 -->
		<jsp:include page="commons/foot.jsp"></jsp:include>
	</div>
</body>
<script type="text/javascript">
	
</script>
</html>